[6.x] Make actions available in a collection tree view#14331
[6.x] Make actions available in a collection tree view#14331Devsome wants to merge 8 commits intostatamic:6.xfrom
Conversation
There was a problem hiding this comment.
This is looking good, thanks!
However we are moving away from sending all the actions down the wire initially. It really bloats the responses.
We have a mechanism to lazily load the actions when you hover over the dropdown. You should rework this PR to allow for that.
See RowActions.vue which is used in the Listing component.
https://github.com/statamic/cms/blob/6.x/resources/js/components/ui/Listing/RowActions.vue
In fact you might actually be able to use the RowActions component itself.
…e component is mounted. Update the Show page to display the skeleton loader. Remove unnecessary action references in TreeBuilder.
|
Hello @jasonvarga thanks for your response, Feel free to let me know what you think. |
Hello everyone,
First of all, thank you for Statamic 6. After someone on Discord pointed me to Issue 575 and I saw the other pull requests 4070 & 4439, I decided to give it a try and follow the contribution guidelines.
Procedure:
npm ci && npm run buildin the statamic/cms projectddev artisan vendor:publish --tag=statamic-cp --force && ddev yarn build && ddev artisan optimize:clearddev artisan statamic:make:actionIf I've forgotten anything or something is missing, please let me know. Even if it isn't accepted, as stated in the Contribution Guidelines, it might still be helpful to others who need it.
This is what my custom action looks like
How it looks like in the TreeView:

How it looks like in the ListView:
